﻿<%@ Page Title="" Language="C#" MasterPageFile="~/template.Master" AutoEventWireup="true"
    CodeBehind="PremiseList.aspx.cs" Inherits="SystemDirectory.Pages.Views.PrimiseList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style>
        .box {
    margin: 0 0 10px 0;
    padding: 10px 15px 5px;
    background-color: white;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    box-shadow: 0 0 3px #AAA;
    -moz-box-shadow: 0 0 3px #AAA;
    -webkit-box-shadow: 0 0 3px #AAA;
}
    </style>
    <script type="text/javascript">
        $(document).ready(function () {
            $("li").removeClass("active");
            $(".premise").addClass("active");
        })
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="content">
        <div id="mainContainer">
            <div class="box">
                <div id="container-orglst">
                    <h3>
                        <a href="#">Premise List</a>
                    </h3>
                    <div class="top">
                        <div class="top-left filter" style="width: 55%; float: left; height: 31px;">
                            <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click"> All </asp:LinkButton>|
                            <asp:LinkButton ID="LinkButton2" runat="server" OnClick="LinkButton2_Click"> 0-9 </asp:LinkButton>|
                            <asp:LinkButton ID="LinkButton3" runat="server" OnClick="LinkButton3_Click"> A B C D E </asp:LinkButton>|
                            <asp:LinkButton ID="LinkButton4" runat="server" OnClick="LinkButton4_Click"> F G H I J </asp:LinkButton>|
                            <asp:LinkButton ID="LinkButton5" runat="server" OnClick="LinkButton5_Click"> K L M N </asp:LinkButton>|
                            <asp:LinkButton ID="LinkButton6" runat="server" OnClick="LinkButton6_Click"> O P Q R </asp:LinkButton>|
                            <asp:LinkButton ID="LinkButton7" runat="server" OnClick="LinkButton7_Click"> S T U V </asp:LinkButton>|
                            <asp:LinkButton ID="LinkButton8" runat="server" OnClick="LinkButton8_Click"> W X Y Z </asp:LinkButton>
                        </div>
                        <div class="top-right include" style="width: 323px; display: inline; margin-bottom: 10px;
                            padding: 0; float: right; height: 29px; margin-top: 0px;">
                           <a href="/Pages/Forms/PremiseAdd.aspx"><input type="button" class="btn btn-primary"  
                                value="Create" style="width:21%; height:30px;"/></a>
                            <asp:CheckBox ID="cbxInactive" Text="" 
                                runat="server" AutoPostBack="True" 
                                OnCheckedChanged="cbxInactive_CheckedChanged"/>Include In-active
                                 </div>
                    </div>
                    </br> </br>
                    <div class="div-table">
                        <asp:Repeater ID="rptPremise" runat="server">
                            <HeaderTemplate>
                                <table width="100%" class="table-striped table-bordered">
                                    <thead>
                                        <tr style="background: #006dcc;color:rgb(255, 253, 253)">
                                            <th>
                                                LocationName
                                            </th>
                                            <th>
                                                Address Line1
                                            </th>
                                            <th>
                                                Postcode
                                            </th>
                                            <th>
                                                Is Active?
                                            </th>
                                        </tr>
                                    </thead>
                                    <tbody>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <a href="../../Pages/Forms/PremiseEdit.aspx?id=<%#Eval("PremiseID") %>" role="button" >
                                            <%#Eval("LocationName") %></a>
                                    </td>
                                    <td>
                                        <%#Eval("AddressLine1") %>
                                    </td>
                                    <td>
                                        <%#Eval("PostCode") %>
                                    </td>
                                    <td>
                                        <%#Eval("IsActive") %>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </tbody> </table>
                            </FooterTemplate>
                        </asp:Repeater>
                        </br>
                        </br>
                    </div>
                    <span class="pagelinks" style="float: right;margin-top: -20px;">
                            
                            <asp:HyperLink ID="hplBackward" runat="server"><span class="icon icon-backward"></span></asp:HyperLink>
                        Page
                        <asp:Label ID="lblCurrent" runat="server" Text="Label"></asp:Label>
                        of 
                        <span class="nops">
                            <asp:Label ID="lblTotal" runat="server" Text="Label"></asp:Label>
                        </span> 
                            
                            <asp:HyperLink ID="hplForward" runat="server"><span class="icon icon-forward"></span></asp:HyperLink>
                    </span>
                </div>
            </div>
                
        </div>
    </div>
    <!-- Modal -->
    <%--<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                ×</button>
            <h3 id="myModalLabel">
                Change Active</h3>
        </div>
        <div class="modal-body">
            <p>
                Do you want to make this Premise active ?</p>
        </div>
        <div class="modal-footer">

            <button class="btn" data-dismiss="modal" aria-hidden="true">
                Cancel</button>
            <button class="btn btn-primary" style="width:80px">
                OK</button>
        </div>
    </div>--%>
</asp:Content>
